import fetch from '@/utils/fetch'

export function userLogin(loginName, password) {
	const data = {
		loginName,
		password
	}
	return fetch({
		url: '/services/sys/login',
		method: 'post',
		data
	})
}
export function logout() {
	return fetch({
		url: '/services/sys/logout',
		method: 'post'
	})
}
